package pers.wensheng.patterns.creator_pattern.factory_pattern.factory_method_pattern.factory;

import pers.wensheng.patterns.creator_pattern.factory_pattern.factory_method_pattern.entity.Coffee;
import pers.wensheng.patterns.creator_pattern.factory_pattern.factory_method_pattern.entity.LatteCoffee;

/**
 *  拿铁咖啡工厂
 */
public class LatteCoffeeFactory implements CoffeeFactory {
    /**
     * 创建咖啡对象的方法
     *
     * @return
     */
    @Override
    public Coffee createCoffee() {
        return new LatteCoffee();
    }
}
